package com.gitee.sop.notify.api.req;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * @author 六如
 */
@Data
public class NotifyRequest implements Serializable {
    private static final long serialVersionUID = -4018307141661725928L;

    /**
     * appId
     */
    @NotBlank(message = "appId必填")
    private String appId;

    /**
     * apiName
     */
    @NotBlank(message = "apiName必填")
    private String apiName;

    /**
     * version
     */
    @NotBlank(message = "version必填")
    private String version;

    /**
     * 编码
     */
    @NotBlank(message = "charset必填")
    private String charset;

    /**
     * token,没有返回null
     */
    private String appAuthToken;

    /**
     * 客户端ip
     */
    private String clientIp;

    /**
     * 回调地址
     */
    private String notifyUrl;

    /**
     * 业务参数
     */
    @NotNull(message = "bizParams必填")
    private Map<String, Object> bizParams;

    /**
     * 备注
     */
    private String remark;
}
